<template>
  <div>
    <h2>分类页面</h2>
    <router-link :to="{name:'关于'}" >关于</router-link>
      <!-- <list ref="categoryList"></list> -->
    <router-view></router-view>
  </div>

</template>

<style lang='stylus'  rel='stylesheet/stylus'>
</style>
<script>
// import list from "../components/list.vue"
let number = 0
export default {
  components:{list},
  data:()=>({
    name:'分类页面'
  }),
  methods:{
    log(){console.dir(this.$refs.categoryList)},
    returnName(){console.dir(this.name);console.log("number:",number++)}
  },
  mounted(){
    this.log()
    this.returnName()
  }
}

</script>